]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "authPrompt: Don't hide the caps lock warning label"
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 14 Feb 2020 19:50:59 +0000 (20:50 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 14 Feb 2020 20:57:03 +0000 (21:57 +0100)
Using the opacity to control the label's visibility doesn't work
correctly, as CapsLockWarning itself changes the opacity when
the caps-lock state changes.

This reverts commit 9f5f6aa9b2c8f5f055a3c3b6ff2270a79c1b5e69.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2215

js/gdm/authPrompt.js

index 42638bee5f69b04edc60655abddd7b0a376f1fb2..6edb2694a593139db9026981a4555f14b7f598fb 100644 (file)
@@ -205,7 +205,7 @@ var AuthPrompt = GObject.registerClass({
             this._mainBox.replace_child(this._entry, this._textEntry);
             this._entry = this._textEntry;
         }
-        this._capsLockWarningLabel.opacity = secret ? 0 : 255;
+        this._capsLockWarningLabel.visible = secret;
     }
 
     _onAskQuestion(verifier, serviceName, question, secret) {